package com.neuedu.gui;

import javax.swing.*;
import java.awt.*;

public class MyTestLayoutRootPanel extends JPanel {
    public MyTestLayoutRootPanel() {
        //FlowLayout
        this.setBackground(Color.PINK);


    }

    @Override
    public void paint(Graphics g) {
        g.setColor(Color.blue);
        g.fillRect(10,10,300,300);

        g.drawString("Hello Swing ",400,400);


    }
}
